{% if Framework.IsFetchOrAurelia -%}
{%     if operation.WrapResponse -%}
return Promise.resolve<{{ operation.ResultType }}>(new {{ operation.ResponseClass }}(status, _headers, <any>null));
{%     else -%}
return Promise.resolve<{{ operation.ResultType }}>(<any>null);
{%     endif -%}
{% elseif Framework.IsAxios -%}
{%     if operation.WrapResponse -%}
return Promise.resolve<{{ operation.ResultType }}>(new {{ operation.ResponseClass }}(status, _headers, <any>null));
{%     else -%}
return Promise.resolve<{{ operation.ResultType }}>(<any>null);
{%     endif -%}
{% elseif Framework.IsAngular -%}
{%     if operation.WrapResponse -%}
return {{ Framework.RxJs.ObservableOfMethod }}<{{ operation.ResultType }}>(new {{ operation.ResponseClass }}(status, _headers, <any>null));
{%     else -%}
return {{ Framework.RxJs.ObservableOfMethod }}<{{ operation.ResultType }}>(<any>null);
{%     endif -%}
{% elseif Framework.IsAngularJS -%}
{%     if operation.WrapResponse -%}
return this.q.resolve<{{ operation.ResultType }}>(new {{ operation.ResponseClass }}(status, _headers, <any>null));
{%     else -%}
return this.q.resolve<{{ operation.ResultType }}>(<any>null);
{%     endif -%}
{% else -%}
{%     if operation.WrapResponse -%}
return new {{ operation.ResponseClass }}(status, _headers, <any>null);
{%     else -%}
return{% if operation.HasResultType %} null{% endif %};
{%     endif -%}
{% endif -%}
